<include file="public:header" />
    
<div class="container">
	<p>&nbsp;</p>
	<if condition="$type eq 'city'">
		<table class="table table-responsive table-bordered">
			<thead>
				<tr>
					<th>月份</th>
					<th>地市</th>
					<th>市场总监</th>
					<th>总任务量</th>
					<th>重点机型务量</th>
					<th>下达指标时间</th>
				</tr>
			</thead> 
			<tbody>
				<volist name="list" id="val">
					<tr>
						<td>{$month}</td>
						<td>{$val['cityName']}</td>
						<td>{$val['userName']}</td>
						<td>{$val['allModel'] ? $val['allModel'] : '未下达'}</td>
						<td>{$val['importModel'] ? $val['importModel'] : '未下达'}</td>
						<td>{$val['addTime'] ? date('Y-m-d H:i:s',$val['addTime']) : '未下达'}</td>
					</tr>
				</volist>
			</tbody>
		</table>
	</if>
	
	<if condition="$type eq 'microArea'">
		<table class="table table-responsive table-bordered">
			<thead>
				<tr>
					<th>月份</th>
					<th>地市</th>
					<th>县区</th>
					<th>督导</th>
					<th>总任务量</th>
					<th>重点机型务量</th>
					<th>下达指标时间</th>
				</tr>
			</thead> 
			<tbody>
				<volist name="list" id="val">
					<tr>
						<td>{$month}</td>
						<td>{$val['cityName']}</td>
						<td>{$val['name']}</td>
						<td>{$val['userName']}</td>
						<td>{$val['allModel'] ? $val['allModel'] : '未下达'}</td>
						<td>{$val['importModel'] ? $val['importModel'] : '未下达'}</td>
						<td>{$val['addTime'] ? date('Y-m-d H:i:s',$val['addTime']) : '未下达'}</td>
					</tr>
				</volist>
			</tbody>
		</table>
	</if>
	
	<if condition="$type eq 'people'">
		<table class="table table-responsive table-bordered">
			<thead>
				<tr>
					<th>月份</th>
					<th>营业厅</th>
					<th>督导</th>
					<th>促销员</th>
					<th>总任务量</th>
					<th>重点机型务量</th>
					<th>下达指标时间</th>
				</tr>
			</thead> 
			<tbody>
				<volist name="list" id="val">
					<tr>
						<td>{$month}</td>
						<td>{$val['storeName']}</td>
						<td>{$val['dudaoName']}</td>
						<td>{$val['userName']}</td>
						<td>{$val['allModel'] ? $val['allModel'] : '未下达'}</td>
						<td>{$val['importModel'] ? $val['importModel'] : '未下达'}</td>
						<td>{$val['addTime'] ? date('Y-m-d H:i:s',$val['addTime']) : '未下达'}</td>
					</tr>
				</volist>
			</tbody>
		</table>
	</if>

</div>
<include file="public:footer" />